from flask_wtf import FlaskForm
from wtforms import SubmitField,PasswordField,StringField
from wtforms.validators import DataRequired,Email,Length

class Login(FlaskForm):
    email = StringField('注册邮箱', validators=[DataRequired(),Email()], render_kw={'placeholder':'请填写你的邮箱'})
    password = PasswordField('密码', validators=[DataRequired()])
    nickname = StringField('昵称',validators=[Length(1, 10, message='输入长度必须放在1-10个字符')])
    submit = SubmitField('提交')